﻿CREATE FUNCTION [dbo].[fn_IsFourPartName]
(
	@Name sysname
)
RETURNS BIT
AS
BEGIN
	DECLARE @True  BIT;  SET @True = 1
	DECLARE @False BIT; SET @False = 0
	
	IF PARSENAME(@Name, 1) + PARSENAME(@Name, 3) + PARSENAME(@Name, 4) IS NOT NULL
	    RETURN @True
	
	RETURN @False
END